$('.add_note .form_body').html("<%= j render( :partial => 'new_record.html', :locals => { :record => ContactRecord.new(:customer_id => @record.customer_id) }) %>");
$('#middle .notes').prepend("<%= j render(:partial => 'record_in_show.html', :locals => { :record => @record }) %>");
$('#note_<%= @record.id %>').hide();
$('#note_<%= @record.id %>').show(500);